<div id="col_right_mid">
<table WIDTH="100%">
	<form method="POST"  action="/main.php" name="connect">
	     <input type="submit" value="Deconnexion" name="Deconnexion"/>
    </form>
<tr><td align="center" colspan="2">Bienvenue <?php echo $dpseudo; ?>.<br><div id="erreur"><?php echo $dReponse['validation']?></div><br><div id="erreur"><?php echo $dReponse['limit']?></div></td></tr>
<tr><td><br /><br /><td></tr>
<?php 
if(count($dlocation)>0) {
	?>
	<tr><td align="center" colspan="2"><b>Vos locations :</b></td></tr>
	<tr>
	<?php 
	for ($i = 0; $i < count($dlocation); $i++) {
		$film = new Film($dlocation[$i]);
		echo '<td colspan="'.(count($dlocation)-1).'"><center><img src="'.$film->getAffiche().'" /></center>'.$film->getTitre().'</td>';
	}
	?>
	</tr>
	<?php 
}

echo '<tr><td><td></tr>';
if(count($dpanier)>0) {
	?>
	<tr><td align="center" colspan="2"><b>Votre panier :</b> </td></tr>
	<tr>
	<?php 
	for ($i = 0; $i < count($dpanier); $i++) {
		$film = new Film($dpanier[$i]);
		echo '<td colspan="'.(count($dpanier)-1).'"><center><img src="'.$film->getAffiche().'" /></center><br />'.$film->getTitre().'<br>';
		?>
		<form method="POST"  action="/main.php" name="connect">
			<input type="hidden" name="id" value="<?php $film->getId();?>" />
	     	<input type="submit" value="Supprimer" name="supprimer"/>
    	</form>
		<?php 
		echo '</td>';
	}
	?>
	</tr>
	<tr><td align="right" colspan="2"><br /><br />
	<form method="POST"  action="/main.php" name="valider">
		<input type="submit" value="Valider" name="valider" />
	</form></td></tr>
	<?php 
}
?>
</table></div>
